import { InjectionToken, Signal } from '@angular/core';

export interface Info {
  type: 'success' | 'error' | 'unknown';
  message: string;
}

export abstract class AbsInfoService {
  abstract all: Signal<Info[]>;
  abstract record(info: Info): void;
}

export const INFO = new InjectionToken<AbsInfoService[]>('all info services');
